#if !defined(AFX_CTRLPANELDLG_H__EA1CCE55_6F8F_4BA5_A6DA_15ABE2C4DE74__INCLUDED_)
#define AFX_CTRLPANELDLG_H__EA1CCE55_6F8F_4BA5_A6DA_15ABE2C4DE74__INCLUDED_
#include "BtnST.h"
#include "resource.h"
#include "MotionControlCard.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CtrlPanelDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CCtrlPanelDlg dialog

class CCtrlPanelDlg : public CDialog
{
// Construction
public:
	CCtrlPanelDlg(CWnd* pParent = NULL);   // standard constructor

public:
	CMotionControlCard *m_pMotionControlCard;
// Dialog Data
	//{{AFX_DATA(CCtrlPanelDlg)
	enum { IDD = IDD_DIALOG_CTR_PANEL };
	CStaticEx	m_ctrZCrtPos;
	CStaticEx   m_ctrYCrtPos;
	CStaticEx	m_ctrXCrtPos;
	CButtonST	m_ctrAntiClockwise;
	CButtonST	m_ctrClockwise;
	CButtonST	m_ctrDown;
	CButtonST	m_ctrLeft;
	CButtonST	m_ctrRight;
	CButtonST	m_ctrlUp;
	CButtonST	m_ctrFindHome;
	CButtonST	m_ctrStopAll;
	double	m_lfXYGotoX;
	double	m_lfXYGotoY;
	double	m_lfXYStepX;
	double	m_lfXYStepY;
	double	m_lfSingMoveTo;
	double	m_lfSingStepMove;
	int		m_nSingMoveTo;
	int		m_nSingStepMove;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCtrlPanelDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CCtrlPanelDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButtonFindHome();
	afx_msg void OnButtonXyGoto();
	afx_msg void OnButtonSingMoveto();
	afx_msg void OnButtonXyStepMove();
	afx_msg void OnButtonSingStepMove();
	afx_msg void OnButtonStopAll();
	afx_msg UINT OnNcHitTest(CPoint point);
	virtual void OnCancel();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CTRLPANELDLG_H__EA1CCE55_6F8F_4BA5_A6DA_15ABE2C4DE74__INCLUDED_)
